﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JingQiao.Ads.Domain.Model.Repository
{
    using Domain.Model.DomainObject;
    using Infrastructure;

    public interface IPositionRepository : IRepository<IPosition>
    {
        bool IsHasAdvertisement(int positionId);

        IPosition FindById(int id);

        IQueryable<IPosition> FindByIds(string positions);

        IQueryable<IPosition> FindAll();

        PagedResult<IPosition> FindAll(int pageSize, int pageIndex);

        PagedResult<IPosition> FindByUniqueCode(int pageSize, int pageIndex, string uniqueCode);

        int CountAll();

        PagedResult<IPosition> FindByName(int pageSize, int pageIndex, string name);

        int CountByName(string name);
    }
}
